package com.project.service;

import com.project.entity.Course;
import com.project.entity.CourseTeach;
import com.project.myBeans.TeacherInfoDetail;

import java.util.List;

public interface CourseTeachService {

    /**
     * 认领课程或者课程中添加教师团队
     * @param courseTeach
     */
    void add(CourseTeach courseTeach);

    List<TeacherInfoDetail> findTeachersByCourseid(Integer courseid);

    CourseTeach findById(Integer id);

    List<Course> findCourseListByTeacherid(Integer teacherid);

    List<CourseTeach> findByCondition(CourseTeach courseTeach);

    List<Integer> findCoursesDistinctByTeacherid(Integer teacherid);

    int updateByPrimaryKeySelective(CourseTeach courseTeach);
}
